package io.wit.modules.wit.service;

import io.wit.modules.wit.entity.SubjectEntity;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * 经营主体
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-01-02 14:45:15
 */
public interface SubjectService {
	
	SubjectEntity queryObject(Long dataId);
	
	List<SubjectEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(SubjectEntity subject);

    String getTypeIdentity();
	
	void update(SubjectEntity subject);
	
	void delete(Long dataId);
	
	void deleteBatch(Long[] dataIds);

	List<SubjectEntity> subjectlist(Map<String, Object> params);

    String save(final HttpServletRequest request);

    String update(final HttpServletRequest request);

    String queryMap(final Long id);
}